/*
 * @Description: xxx描述文件内容
 * @Autor: gufuyan
 * @Date: 2021-11-12 09:39:39
 * @lastModifiedBy: gufuyan
 * @LastEditTime: 2021-11-23 15:41:07
 * @lastModifiedContent: xxx描述修改的内容
 */
import { Request, Response } from 'express';

function getPageList(req: Request, res: Response, u: string) {
  const result = {
    errorCode: '0',
    errorMsg: 'success',
    data: [
      {
        type: '主营业务',
        id: '1',
        list: [
          {
            id: 'AASDDFW11110000001',
            name: '销售合同',
            icon: 'https://my-beta.chinasie.com/bpm/content/img/formColumn/salesContract.png',
          },
          {
            id: 'AASDDFW11110000002',
            name: '软硬件采购',
            icon: 'https://my-beta.chinasie.com/bpm/content/img/formColumn/bidding.png',
          },
        ],
      },
      {
        type: '人力资源',
        id: '2',
        list: [
          {
            id: 'AASDDFW11110000003',
            name: '社保公积金缴存地变更',
            icon: 'https://my-beta.chinasie.com/bpm/content/img/formColumn/bidding.png',
          },
          {
            id: 'AASDDFW11110000004',
            name: '旅游团建申请',
            icon: 'https://my-beta.chinasie.com/bpm/content/img/formColumn/bidding.png',
          },
          {
            id: 'AASDDFW11110000005',
            name: '收入证明',
            icon: 'https://my-beta.chinasie.com/bpm/content/img/formColumn/bidding.png',
          },
          {
            id: 'AASDDFW11110000006',
            name: '实习证明',
            icon: 'https://my-beta.chinasie.com/bpm/content/img/formColumn/bidding.png',
          },
          {
            id: 'AASDDFW11110000007',
            name: '在职证明',
            icon: 'https://my-beta.chinasie.com/bpm/content/img/formColumn/bidding.png',
          },
          {
            id: 'AASDDFW11110000008',
            name: '跨二级部门调动申请',
            icon: 'https://my-beta.chinasie.com/bpm/content/img/formColumn/bidding.png',
          },
        ],
      },
    ],
  };
  return res.json(result);
}

export default {
  'GET /api/page/list': getPageList,
};
